﻿@using TjZheng.Domain.DataEntity;
@{
    ViewBag.Title = "敏感词库信息";
    Layout = "~/Views/Shared/_ListLayout.cshtml";
    DbSetInfo objDbSetInfo = ViewBag.DbSetInfo as DbSetInfo;
}
@inherits CMSWebViewPage<object>
@section Head{

}
<div id="toolbar_badwords" class="datagrid-toolbar">
    @CurrentButtonTool.Create()
    <div>
        <form id="fr_search_badwords">
            @Html.QueryStringBox("敏感词", "Word")
            <a onclick="Search();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"></a>
        </form>
    </div>
</div>
<table id="dg_badwords" data-options="url:'/bbs/badwords/listjson?SetId=@objDbSetInfo.SetId',border:false,fit:true,fitColumns:true,toolbar:'#toolbar_badwords',singleSelect:true,pagination:true,pageSize:20">
    <thead>
        <tr>
            <th data-options="field:'ck',checkbox:true"></th>
            <th data-options="field:'Id',width:20,align:'center'">Id</th>
            <th data-options="field:'Word',width:60,align:'center'">敏感词</th>
        </tr>
    </thead>
</table>
@section Bottom{
    <script type="text/javascript">
    var objBizDatagrid = new BizDatagrid('#dg_badwords');
    function Add() {
        objBizDatagrid.add("/bbs/badwords/editpage?SetId=@objDbSetInfo.SetId");
    }
    function Edit() {
        objBizDatagrid.edit("/bbs/badwords/editpage?SetId=@objDbSetInfo.SetId", "Id");
    }
    function Search() {
        objBizDatagrid.search('#fr_search_badwords', '/bbs/badwords/listjson?SetId=@objDbSetInfo.SetId');
    }
    function Delete() {
        objBizDatagrid.del('/bbs/badwords/delete?SetId=@objDbSetInfo.SetId', "Id");
    }
    </script>
}
